package com.qdhhxy.entity;

import java.util.List;

public class UserEntity {
    private int id;
    private String name;
    private int age;
    private double hight;
    private String brith;
    private  char sex;
    private List<CarEntity> carEntities;
    public UserEntity() {
    }

    public UserEntity(int id, String name, int age, double hight, String brith, char sex) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.hight = hight;
        this.brith = brith;
        this.sex = sex;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getHight() {
        return hight;
    }

    public void setHight(double hight) {
        this.hight = hight;
    }

    public String getBrith() {
        return brith;
    }

    public void setBrith(String brith) {
        this.brith = brith;
    }

    public char getSex() {
        return sex;
    }

    public void setSex(char sex) {
        this.sex = sex;
    }


    public List<CarEntity> getCarEntities() {
        return carEntities;
    }

    public void setCarEntities(List<CarEntity> carEntities) {
        this.carEntities = carEntities;
    }

    @Override
    public String toString() {
        return "UserEntity{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", hight=" + hight +
                ", brith='" + brith + '\'' +
                ", sex=" + sex +
                ", carEntities=" + carEntities +
                '}';
    }
}
